package com.cd.hospital.modules.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cd.hospital.modules.dao.ExpertDao;
import com.cd.hospital.modules.entity.ExpertEntity;
import com.cd.hospital.modules.service.ExpertService;



@Service("expertService")
public class ExpertServiceImpl implements ExpertService {
	@Autowired
	private ExpertDao expertDao;
	
	@Override
	public ExpertEntity queryObject(Integer expertId){
		return expertDao.queryObject(expertId);
	}
	
	@Override
	public List<ExpertEntity> queryList(Map<String, Object> map){
		return expertDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return expertDao.queryTotal(map);
	}
	
	@Override
	public void save(ExpertEntity expert){
		expertDao.save(expert);
	}
	
	@Override
	public void update(ExpertEntity expert){
		expertDao.update(expert);
	}
	
	@Override
	public void delete(Integer expertId){
		expertDao.delete(expertId);
	}
	
	@Override
	public void deleteBatch(Integer[] expertIds){
		expertDao.deleteBatch(expertIds);
	}
	
}
